<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
    <import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/>

    <!--XFire Web Service 基类-->
    <bean id="baseWebService" class="org.codehaus.xfire.spring.remoting.XFireExporter" abstract="true">
        <property name="serviceFactory" ref="xfire.serviceFactory"/>
        <property name="xfire" ref="xfire"/>
    </bean>

    <!--Web Service 在SpringMVC中的URL 路径映射-->
    <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="mappings">
	            <value>
		            /AddressUserService=addressUserService
		            /WorkflowFileinboxService=workflowFileinboxService
		            /GwjhwebService=gwjhwebService
	            </value>
        </property>
    </bean>

    <!--XFire 导出的BookService POJO-->

    <bean id="addressUserService" parent="baseWebService">
        <property name="serviceBean" ref="addressUserManager"/>
        <property name="serviceClass" value="cn.firstsoft.modules.address.service.logic.AddressUserService"/>
    </bean>

	<bean id="workflowFileinboxService" parent="baseWebService">
        <property name="serviceBean" ref="workflowFileinboxManager"/>
        <property name="serviceClass" value="cn.firstsoft.modules.workflow.service.logic.WorkflowFileinboxService"/>
    </bean>
	<bean id="gwjhwebService" parent="baseWebService">
    	<property name="serviceBean" ref="webServiceManager"/>
     	<property name="serviceClass" value="cn.firstsoft.modules.gwjh.service.logic.GwjhWebService"/>
    </bean>
</beans>
